var n;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.RedPointCtrl = exports.RedPointType = exports.RedPointLevel = undefined;
var a;
var SingletonManager = require("AA_SingletonManager");
var PlayerDataManager = require("AA_PlayerDataManager");
var Excel = require("AA_Excel");
var HallGlobalVariable = require("AA_HallGlobalVariable");
var HallManager = require("AA_HallManager");
var d = function (e) {
  function t() {
    var t = null !== e && e.apply(this, arguments) || this;
    t.redPointMap = new Map();
    return t;
  }
  __extends(t, e);
  t.prototype.GetRedPointByType = function (e) {
    this.CheckType(e);
    return !!this.redPointMap.get(e) && this.redPointMap.get(e);
  };
  t.prototype.CheckType = function (e) {
    var t = this;
    switch (e) {
      case a.freeDiamond:
        this.redPointMap.set(e, 0 == HallManager.HallMgr.shopData.todayBuyDiamondCount);
        break;
      case a.freeGold:
        this.redPointMap.set(e, 0 == HallManager.HallMgr.shopData.videoBuyGoldCount);
        break;
      case a.upEquip:
        this.redPointMap.set(e, false);
        var o = PlayerDataManager.PlayerDataMgr.dressUpArray.filter(function (e) {
          return 0 == e;
        });
        if (o && o.length > 0) {
          this.redPointMap.set(e, true);
        } else {
          Excel.Excel.shuiguo_all.forEach(function (o) {
            var n = PlayerDataManager.PlayerDataMgr.GetEquipDataById(o.id);
            if (n && n.isUnLock) {
              var i = HallGlobalVariable.default.shuiGuoLevelMap.get(o.id);
              i && n.level <= i.length && n.fragments >= i[n.level - 1].shengjixiaohao && t.redPointMap.set(e, true);
            }
          });
        }
    }
  };
  return t;
}(SingletonManager.SingletonMgr);
(function (e) {
  e[e.little = 0] = "little";
  e[e.all = 1] = "all";
})(exports.RedPointLevel || (exports.RedPointLevel = {}));
(function (e) {
  e[e.freeDiamond = 1] = "freeDiamond";
  e[e.freeGold = 2] = "freeGold";
  e[e.upEquip = 3] = "upEquip";
  e[e.type4 = 4] = "type4";
  e[e.type5 = 5] = "type5";
  e[e.type6 = 6] = "type6";
  e[e.type7 = 7] = "type7";
})(a = exports.RedPointType || (exports.RedPointType = {}));
exports.RedPointCtrl = d.getInstance();